import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
import set from '@dfeidao/atom-web/local/set';

export default async function a001(fd: IFeidaoAiBrowserComponent, n: string) {
	// console.log('zj7a001', n);
	// todo
	// const res = await nodejs<{ code: 0 | 1; result: string }>('company-factory/zj-000007/s001', {
	// 	filter: {
	// 		factory_name: factory_name,
	// 		factory_principle: factory_principle,
	// 		contacts_tel_one: contacts_tel_one,
	// 		contact: contact,
	// 		contacts_tel_two: contacts_tel_two,
	// 		factory_address: factory_address
	// 	}
	// });

	const addfac = fd.data.node.querySelector<HTMLInputElement>('[data-id="addfac"]');
	set_node_cls(addfac, 'display-n', false);
	set(fd, 'n', n);
}
